using System.Windows.Forms;
using RollManager.Library.ActionSteps;

namespace RollManager.Forms
{
    public partial class SetupStepDialog : Form
    {
        private ActionStep m_step;

        public SetupStepDialog( ActionStep step )
        {
            m_step = step;
            InitializeComponent();

            propertyGrid.SelectedObject = m_step;
        }

        private void okBtn_Click( object sender, System.EventArgs e )
        {
            DialogResult = DialogResult.OK;
            Close();
        }

        private void cancelBtn_Click( object sender, System.EventArgs e )
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }

        private void button1_Click( object sender, System.EventArgs e )
        {
            ConfigSettings dialog = new ConfigSettings();
            dialog.Show();
        }
    }
}